package 策略模式.three;

/**
 * @author xuanjian
 * 绿头鸭
 */
public class MallardDuck extends Duck {

	public MallardDuck() {
		flyBehavior = new FlyWithWings();
		quackBehavior = new Quack();
	}
	
	@Override
	void display() {
		System.out.println("外观：绿头");
	}

	@Override
	void type() {
		System.out.println("种类：绿头鸭");
		
	}
	
}
